
/**
 * 
 * 
 * 你可以打开F12控制台，使用window.connector进行测试
 * 
 * 
 */

window.connector.attachEvent("onContextMenuShow", (options) => {
    window.connector.addContextMenuItem([
      {
        id: 'mainItem',
        text: "mainItem",
        data: 'data_1',
        onClick: (data) => {
            console.log(data);
        },
      },
    ]);
  });